package tms.business.jabber;

import tms.business.time.TimeService;
import tms.util.jabber.JabberManager;

import javax.ejb.EJB;
import javax.ejb.Schedule;
import javax.ejb.Stateless;
import javax.inject.Inject;

@Stateless
public class ConnectionRefreshTrigger {
    @Inject
    private JabberManager jabberManager;


    @Schedule(second = "*/30", minute="*", hour="*")
    public void trigger() {
        jabberManager.refreshConnection();
    }
}
